//状态管理
import { playMode } from 'common/js/config'
import { loadSearch, loadPlay, loadFavorite } from 'common/js/cache'
// 定义state 原始数据
const state = {
    host: 'http://127.0.0.1:8888',
    singer: {},
    playing: false, //是否播放
    fullScreen: false,  //播放器是否全屏
    playlist: [], //播放列表
    sequenceList: [], //顺序播放
    mode: playMode.sequence, //播放模式
    currentIndex: -1,  //当前播放的歌曲的索引

    //disc: {},
    topList: {},
    searchHistory: loadSearch(),
    playHistory: loadPlay(),
    favoriteList: loadFavorite()
}

export default state
